# -*- coding: utf-8 -*-
<%
  from pylons import g
  id = g.random_id()

  conv_results_id = 'conv_results_%s' % id
%>
<div class='url_info'>
    <div class='html_info'><span class='text'>web-страница</span> <b>${c.page_title}</b> <a href='${c.url}' target='_blank' class='out'>↗</a>
    <div class='html_links'>${c.url} → ${h.link_to_remote('pdf', dict(update = conv_results_id,
    						   url = h.url_for(action='html_to_pdf', controller='converter', url=c.url),
    						   loading="Element.show('getting_results_" + id + "')",
    						   complete="Element.hide('getting_results_" + id+ "')"))}<br/>
    </div>
    <div class='left_glue'><div id="getting_results_${id}" class='getting_results' style='display:none;'><img src="/images/ajax-loader.gif"/></div><div id='${conv_results_id}' class='conv_results'></div></div></div>

    % if c.is_feeds:
        <div class='feeds_info'>
            <span class='text'>найдены потоки</span>
            ${c.feeds}
        </div>
    % endif
</div>
